﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xts
{
    namespace Util
    {
        public class XRequestReaderThread
        {
            protected XThreadSafeQueue<IXRequestJob> x_JobQueue;

            public XRequestReaderThread(ref XThreadSafeQueue<IXRequestJob> jobQueue)
            {
                x_JobQueue = jobQueue;
            }

            public void Run()
            {
                while (x_JobQueue.Dequeue().Execute())
                {
                }
            }
        }
    }
}
